From b7b2a5ca647ad05df2bbbffa982ea4e206428960 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 18 Oct 2001 20:12:24 +0000 Subject: [PATCH] Don't dereference context when it may be NULL. (#62344) * io-xbm.c (gdk_pixbuf__xbm_image_load_real): Don't dereference context when it may be NULL. (#62344) --- gdk-pixbuf/ChangeLog | 5 +++++ gdk-pixbuf/io-xbm.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index e60204ab0e..5bcece744b 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +2001-10-18 Matthias Clasen + + * io-xbm.c (gdk_pixbuf__xbm_image_load_real): Don't dereference + context when it may be NULL. (#62344) + 2001-10-16 Matthias Clasen * gdk-pixdata.c, gdk-pixdata.h: Documentation. diff --git a/gdk-pixbuf/io-xbm.c b/gdk-pixbuf/io-xbm.c index 47ce269f67..c989ada04b 100644 --- a/gdk-pixbuf/io-xbm.c +++ b/gdk-pixbuf/io-xbm.c @@ -281,8 +281,7 @@ gdk_pixbuf__xbm_image_load_real (FILE *f, XBMData *context, GError **error) g_set_error (error, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_CORRUPT_IMAGE, - _("Invalid XBM file: %s"), - context->tempname); + _("Invalid XBM file")); return NULL; } -- 2.30.2